#pragma once

#include "ParticleSystem.h"
 
class Player;

class Camera : public BaseObject
{
public:
	Camera();
	Camera(Player*);
	~Camera();

	int		GetCameraX()	const	{ return m_nCameraX; }
	int		GetCameraY()	const	{ return m_nCameraY; }


	void	Update(float dt);
	void	CameraShake();
	void	SetMoving(bool b) { m_bAllowMoving = b; }
private:

	int		m_nCameraX;
	int		m_nCameraY;
	float	m_fCameraOff;
	SGD::Point m_ptCurrPos;
	bool	m_bAllowMoving;

	Player*		m_pPlayer;
};